import { createApp } from 'vue'
import '@/styles/index.scss'
import App from '@/App.vue'
import 'virtual:svg-icons-register'
import ElementPlus from 'element-plus'
import 'element-plus/dist/index.css'
// element-plus暗黑模式
import 'element-plus/theme-chalk/dark/css-vars.css'
//@ts-ignore
import zhCn from 'element-plus/dist/locale/zh-cn.mjs'
import gloablComponent from './components/index';
import router from './router';
import pinia from './store'
import './permisstion'

const app = createApp(App);

app.use(ElementPlus, {
    locale: zhCn,
})
app.use(gloablComponent);
app.use(router);
app.use(pinia);

app.mount('#app')